<%@ Page Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="MyMessageBoard.aspx.cs" Inherits="DashBoard_MyMessageBoard" Title="Untitled Page" %>
<%@ Register src="../includes/myAccount.ascx" tagname="myAccount" tagprefix="uc3" %>
<%@ Register Src="../includes/DoctorMenu.ascx" TagName="DoctorMenu" TagPrefix="uc2" %>
<%@ MasterType VirtualPath="~/MainMaster.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="Server">
    <div class="heading_inner">
        <div class="heading_topic">
            <h2>Doctor Message Board :
                    <asp:Label runat="server" ID="lblBlogName"></asp:Label></h2>
        </div>
    </div>

    <div class="cl"></div>

    <div class="account_new">

        <div class="acc_nav">
           

            <uc3:myaccount id="myAccount1" runat="server" />
        </div>




        <div class="part_1_blog">
              <div class="heading_account">
                        <%--<h2>Welcome,</h2>
                        <h3><%=Session["LoginName"]%> </h3>--%>
                  <uc2:DoctorMenu ID="DoctorMenu1" runat="server" />
                 

            </div>
            <div class="upper_acc">

                <div class="lft_up_acc"></div>
                <div class="center_stroke_acc">
                    <div class="form_head_acc">Message Board</div>
                </div>
                <div class="right_up_acc"></div>
            </div>

            <div class="doc_pass_acc">

                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                <tr>
                                    <td colspan="2">
                                        <asp:DataList ID="grdDoctorBlog" runat="Server" DataKeyField="ID" OnItemCommand="grdDoctorBlog_ItemCommand">
                                            <HeaderTemplate>
                                                <table cellpadding="4" cellspacing="0" border="0" width="100%">
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <tr bgcolor="DarkGray">
                                                    <td>
                                                        <b>By,
                                                            <%# DataBinder.Eval(Container.DataItem, "postedName")%>
                                                        </b>
                                                    </td>
                                                    <td align="right">
                                                        <b>
                                                            <%# DataBinder.Eval(Container.DataItem, "msgDate")%>
                                                        </b>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <%# DataBinder.Eval(Container.DataItem, "msgDescription")%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:LinkButton ID="lnkAnswer" runat="Server" CommandName="Ans" CausesValidation="false" CommandArgument='<%# Eval("Id") %>'>Answer</asp:LinkButton></td>
                                                </tr>
                                            </ItemTemplate>
                                            <AlternatingItemTemplate>
                                            </AlternatingItemTemplate>
                                            <FooterTemplate>
                                                </table>
                                            </FooterTemplate>
                                        </asp:DataList>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">&nbsp;<asp:Label runat="server" ID="lblerr" Visible="false"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td class="bodytxt">
                                        <asp:Panel ID="PostMessae" runat="Server">
                                            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                <tr>
                                                    <td>
                                                        <asp:Label runat="server" ID="Label1" Visible="false"></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">Post Your Message:<br />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <asp:TextBox runat="server" ID="txtMessage" TextMode="MultiLine" Rows="5" Width="530px"></asp:TextBox></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2" align="right" style="height: 26px">
                                                        <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="buttonclass" OnClick="btnSubmit_Click" />
                                                        <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="buttonclass" OnClick="btnCancel_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                

            </div>
        </div>
    </div>


    
</asp:Content>
